//
//  ZHViewController.m
//  LBQRCodeViewController
//
//  Created by luckyBoyRoy@163.com on 01/12/2018.
//  Copyright (c) 2018 luckyBoyRoy@163.com. All rights reserved.
//

#import "ZHViewController.h"
#import <LBQRCodeViewController/LBQRCodeViewController.h>
#import <LBQRCodeApplication.h>
#import <LBQRAlertView.h>
#import <LBQRCodeViewController.h>

@interface ZHViewController ()

- (IBAction)pushToQRPage:(id)sender;

@end

@implementation ZHViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)pushToQRPage:(id)sender {
    LBQRCodeViewController *codeViewController = [[LBQRCodeViewController alloc]initWithDeclareType:LBQRCodeViewDeclareTypeCommon complete:^(NSString *data) {
        
    }];
    UINavigationController *currentNavViewController = [UIApplication getCurrentViewController].navigationController;
    
    if (!currentNavViewController) {
        currentNavViewController = [UIApplication sharedApplication].keyWindow.rootViewController ;
    }
    
    [currentNavViewController pushViewController:codeViewController animated:YES];
}
@end
